import request from '@/utils/request'



export function outBankList(data) { //出库管理-列表
  return request({
    url: '/maintenance-management/api/sapIssue/page',
    method: 'post',
    data
  })
}


export function outBankAdd(data) { //出库管理-新增
  return request({
    url: '/maintenance-management/api/sapIssue/add',
    method: 'post',
    data
  })
}

export function outBankEdit(data) { //出库管理-编辑
  return request({
    url: '/maintenance-management/api/sapIssue/edit',
    method: 'post',
    data
  })
}

export function outBankDelete(id) { //出库管理-删除
  return request({
    url: '/maintenance-management/api/sapIssue/del/' + id,
    method: 'get',
  })
}


export function outBankDetail(id) { //出库管理-详情
  return request({
    url: '/maintenance-management/api/sapIssue/' + id,
    method: 'get',
  })
}



export function outBankFpso(data) { //出库管理-fpso
  return request({
    url: '/project-quality/api/facility/get/list',
    method: 'POST',
    data,
  })
}
export function outBankUpload(data) { //出库管理-手动导入
  return request({
    url: '/maintenance-management/api/sapStock/import',
    method: 'POST',
    data,
  })
}
export function outBankExport(data) { //出库管理-导出
  return request({
    url: '/maintenance-management/api/sapIssue/export',
    responseType: 'arraybuffer',
    method: 'POST',
    data,
  })
}
